3.190 \(\int x^2 (a (b x^n)^p)^q \, dx\)

Optimal. Leaf size=23 \[ \frac{x^3 \left (a \left (b x^n\right )^p\right )^q}{n p q+3} \]

[Out]

(x^3*(a*(b*x^n)^p)^q)/(3 + n*p*q)

________________________________________________________________________________________

Rubi [A]  time = 0.0460035, antiderivative size = 23, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {6679, 30} \[ \frac{x^3 \left (a \left (b x^n\right )^p\right )^q}{n p q+3} \]

Antiderivative was successfully verified.

[In]

Int[x^2*(a*(b*x^n)^p)^q,x]

[Out]

(x^3*(a*(b*x^n)^p)^q)/(3 + n*p*q)

Rule 6679

Int[(u_.)*((c_.)*((d_.)*((a_.) + (b_.)*(x_))^(n_))^(p_))^(q_), x_Symbol] :> Dist[(c*(d*(a + b*x)^n)^p)^q/(a +
b*x)^(n*p*q), Int[u*(a + b*x)^(n*p*q), x], x] /; FreeQ[{a, b, c, d, n, p, q}, x] &&  !IntegerQ[p] &&  !Integer
Q[q]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rubi steps

\begin{align*} \int x^2 \left (a \left (b x^n\right )^p\right )^q \, dx &=\left (x^{-n p q} \left (a \left (b x^n\right )^p\right )^q\right ) \int x^{2+n p q} \, dx\\ &=\frac{x^3 \left (a \left (b x^n\right )^p\right )^q}{3+n p q}\\ \end{align*}

Mathematica [A]  time = 0.0047719, size = 23, normalized size = 1. \[ \frac{x^3 \left (a \left (b x^n\right )^p\right )^q}{n p q+3} \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*(a*(b*x^n)^p)^q,x]

[Out]

(x^3*(a*(b*x^n)^p)^q)/(3 + n*p*q)

________________________________________________________________________________________

Maple [A]  time = 0.002, size = 24, normalized size = 1. \begin{align*}{\frac{{x}^{3} \left ( a \left ( b{x}^{n} \right ) ^{p} \right ) ^{q}}{npq+3}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a*(b*x^n)^p)^q,x)

[Out]

x^3*(a*(b*x^n)^p)^q/(n*p*q+3)

________________________________________________________________________________________

Maxima [A]  time = 1.38853, size = 36, normalized size = 1.57 \begin{align*} \frac{a^{q}{\left (b^{p}\right )}^{q} x^{3}{\left ({\left (x^{n}\right )}^{p}\right )}^{q}}{n p q + 3} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a*(b*x^n)^p)^q,x, algorithm="maxima")

[Out]

a^q*(b^p)^q*x^3*((x^n)^p)^q/(n*p*q + 3)

________________________________________________________________________________________

Fricas [A]  time = 1.84121, size = 78, normalized size = 3.39 \begin{align*} \frac{x^{3} e^{\left (n p q \log \left (x\right ) + p q \log \left (b\right ) + q \log \left (a\right )\right )}}{n p q + 3} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a*(b*x^n)^p)^q,x, algorithm="fricas")

[Out]

x^3*e^(n*p*q*log(x) + p*q*log(b) + q*log(a))/(n*p*q + 3)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \left (a \left (b x^{n}\right )^{p}\right )^{q}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(a*(b*x**n)**p)**q,x)

[Out]

Integral(x**2*(a*(b*x**n)**p)**q, x)

________________________________________________________________________________________

Giac [A]  time = 1.15026, size = 39, normalized size = 1.7 \begin{align*} \frac{x^{3} e^{\left (n p q \log \left (x\right ) + p q \log \left (b\right ) + q \log \left (a\right )\right )}}{n p q + 3} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*(a*(b*x^n)^p)^q,x, algorithm="giac")

[Out]

x^3*e^(n*p*q*log(x) + p*q*log(b) + q*log(a))/(n*p*q + 3)